package com.powernode.controller;

import com.powernode.domain.MemberAddr;
import com.powernode.model.Result;
import com.powernode.service.MemberAddrService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author RenBoQing
 * @date 2024年08月29日 22:30
 * @Description 会员收获地址 管理控制器
 */
@Api(tags = "会员收获地址接口管理")
@RequestMapping("/p/address")
@RestController
public class MemberAddrController {
    @Autowired
    private MemberAddrService memberAddrService;

    @GetMapping("/getMemberAddrById")
    public Result<MemberAddr> getMemberAddrById(@RequestParam Long addrId) {
        MemberAddr memberAddr = memberAddrService.getById(addrId);
        return Result.success(memberAddr);
    }

}
